package svc

import (
	"hippo/api/internal/config"
	"hippo/hipporpc/hipporpcclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config   config.Config
	HippoRpc hipporpcclient.Hipporpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		HippoRpc: hipporpcclient.NewHipporpc(zrpc.MustNewClient(c.HippoRpc)),
	}
}
